<?php
require_once '../../vendor/autoload.php';
use Muyuxuanpay\cms\MuCms;

$config = [
    'gateways'=>[
        'aliyun' => [
            'access_key_id' => 'LTAI5tF4HLg64uRSgQrkAKVh',
            'access_key_secret' => '0rXp8TynZfChg3xEBYGCUNC0gpMpx4',
            'sign_name' => '四川数联天下科技',
        ]
    ]
];
$obj = new MuCms($config);
$newconfig = $obj->getConfig();
//echo "<pre>";
//print_r($newconfig);
//exit;
$res = $obj->sendCms('18227948197',[
    'content'  => '您的验证码为: 9865',
    'template' => 'SMS_305103625',
    'data' => [
        'code' => '9865'
    ],
]);
if(!$res){
    echo "<pre>";
    print_r($obj->getMessage());
    exit;
}
echo "<pre>";
var_dump($res);
exit;